﻿using Entity.ViewEntity.sys;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Web;

namespace SysFrameWork
{
   public class LoginInfo
    {
        /// <summary>
        /// 登录用户基本信息
        /// </summary>
        /// <returns>用户信息模型</returns>
        public LoginUser UserInfo()
        {
            var userInfo = (LoginUser)HttpContext.Current.Session["user"];
            return userInfo != null ? userInfo : null;
        }

      
    }
}
